const Mock = require('mockjs')

module.exports = function (req) {
  const result = [
    {
      code: '200001',
      hidden: false,
      icon: 'icon-home',
      id: 1,
      name: '首页',
      parentCode: '0',
      resourceList: null,
      routePath: '/dashboard',
      children: null,
    },
    {
      code: '200002',
      hidden: false,
      icon: 'icon-customerservice',
      id: 2,
      name: '听课',
      parentCode: '0',
      resourceList: null,
      routePath: '',
      children: [
        {
          children: null,
          code: '2000021',
          hidden: false,
          icon: '',
          id: 3,
          name: '听课与评课',
          parentCode: '200002',
          routePath: '/listen/index',
        },
        {
          children: null,
          code: '2000022',
          hidden: false,
          icon: '',
          id: 4,
          name: '评价管理',
          parentCode: '200002',
          routePath: '/listen/manage',
        },
      ],
    },
    {
      code: '200003',
      hidden: false,
      icon: 'icon-linechart',
      id: 5,
      name: '数据',
      parentCode: '0',
      resourceList: null,
      routePath: '',
      children: [
        {
          children: null,
          code: '2000031',
          hidden: false,
          icon: '',
          id: 6,
          name: '数据概览',
          parentCode: '200003',
          routePath: '/data/summary',
        },
        {
          children: null,
          code: '2000032',
          hidden: false,
          icon: '',
          id: 7,
          name: '我的数据',
          parentCode: '200003',
          routePath: '/data/owner',
        },
        {
          children: null,
          code: '2000033',
          hidden: false,
          icon: '',
          id: 8,
          name: '报表分析',
          parentCode: '200003',
          routePath: '/data/analysis',
        },
        {
          children: null,
          code: '2000034',
          hidden: false,
          icon: '',
          id: 9,
          name: '课表查看',
          parentCode: '200003',
          routePath: '/data/schedule',
        },
      ],
    },
    {
      code: '200004',
      hidden: false,
      icon: 'icon-setting',
      id: 10,
      name: '系统设置',
      parentCode: '0',
      resourceList: null,
      routePath: '',
      children: [
        {
          children: null,
          code: '2000041',
          hidden: false,
          icon: '',
          id: 11,
          name: '菜单管理',
          parentCode: '200004',
          routePath: '/system/menu',
        },
        {
          children: null,
          code: '2000042',
          hidden: false,
          icon: '',
          id: 12,
          name: '账户管理',
          parentCode: '200004',
          routePath: '/system/account',
        },
        {
          children: null,
          code: '2000043',
          hidden: false,
          icon: '',
          id: 13,
          name: '角色管理',
          parentCode: '200004',
          routePath: '/system/role',
        },
        {
          children: null,
          code: '2000044',
          hidden: false,
          icon: '',
          id: 14,
          name: '通知管理',
          parentCode: '200004',
          routePath: '/system/notice',
        },
        {
          children: null,
          code: '2000045',
          hidden: false,
          icon: '',
          id: 15,
          name: '账号激活申请',
          parentCode: '200004',
          routePath: '/system/activation',
        },
      ],
    },
  ]
  return {
    result: result,
    error: null,
    success: true,
    code: '10000',
    datetime: Date.now(),
  }
}
